package com.PictureSite.servlet;

import javax.servlet.http.HttpServlet;

import com.PictureSite.DatabaseAccess.PictureSiteCreatePostDAO;
import com.google.appengine.api.files.FileService;
import com.google.appengine.api.files.FileServiceFactory;

@SuppressWarnings("serial")
public class PictureSiteCommonServlet extends HttpServlet{
	
	// static application context
	private static FileService file_service;
	
	private static PictureSiteCreatePostDAO dataStore;
	
	static {
		file_service = FileServiceFactory.getFileService();
		dataStore = new PictureSiteCreatePostDAO(); 
	}
	
	protected static FileService getSharedFileService() {
		return file_service;
	}
	
	protected static PictureSiteCreatePostDAO getDataStore() {
		return dataStore;
	}
}
